<div class="form-group">
    <label class="col-sm-2 control-label">品牌名</label>
    <div class="col-sm-10">
        <input type="text" class="form-control" name="{{ form_name }}[name]"
               required="required" value="{{ entity.name }}">
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">描述</label>
    <div class="col-sm-10">
        <div id="ueditor">

        </div>

        <textarea id="brand_desc" class="form-control" style="display: none;"
                  name="{{ form_name }}[description]">{{ entity.description | escape('html')}}</textarea>
    </div>
</div>

<div class="form-group">
    <label class="col-sm-2 control-label">商标</label>
    <div class="col-sm-10">

        {% if has_upload is not defined %}
            {#显示图片缩略图 和 上传按钮#}
            <div class="img-container">
                <img src="/{{ entity.logo }}" width="100px" height="100px">
            </div>
        {% endif %}

        <input type="file" id="brand_logo" class="form-control" name="{{ form_name }}[logo]"
           {% if is_edit is defined %}>
            {% else %}
           required="required">
            {% endif %}

    </div>
</div>